package com.qf.fallback;

import com.qf.feign.GoodsFeign;
import com.qf.pojo.Goods;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 千峰教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Component
@RequestMapping("/fallback")
public class GoodsFallback implements GoodsFeign {
    @Override
    public String index() {
        return "goods模块太贪玩儿，跑丢了!!!";
    }

    @Override
    public Goods findById(Integer id) {
        return null;
    }

    @Override
    public Goods findById2(Integer id) {
        return null;
    }

    @Override
    public String save(Goods goods) {
        return null;
    }
}
